/*
 * @Author: anshengtyp
 * @Date: 2024-03-07 10:18:42
 * @LastEditTime: 2024-07-12 11:12:37
 * @LastEditors: anshengtyp 1815634838@qq.com
 * @Description:
 */
import request from "@/utils/request";
export function get720List(params) {
  return request({
    url: "/picture/list",
    method: "get",
    params,
  });
}

export function add720(data) {
  return request({
    url: "/picture",
    method: "post",
    data,
  });
}

export function update720(data) {
  return request({
    url: `/picture`,
    method: "put",
    data,
  });
}

export function delete720(id) {
  return request({
    url: `/picture/${id}`,
    method: "delete",
  });
}

export function get720Details(id) {
  return request({
    url: `/picture/${id}`,
    method: "get",
  });
}

// 多个材料上传
export function materialUpload(data) {
  return request({
    url: `/common/uploadsMinio`,
    method: "post",
    data,
  });
}
// 单个上传
export function singleUpload(data) {
  return request({
    url: `/common/uploadMinio`,
    method: "post",
    data,
  });
}

// 下载
export function downloadPic(params) {
  return request({
    url: `/common/download/resource`,
    method: "get",
    params,
  });
}
// 分割图片
export function splitImage(url) {
  return request({
    url: `/Image/Split?${url}`,
    method: "post",
  });
}

// 发布
export function publishFullImage(id) {
  return request({
    url: `/picture/${id}/publish`,
    method: "post",
  });
}

// 取消发布
export function unPublishFullImage(id) {
  return request({
    url: `/picture/${id}/canceld`,
    method: "post",
  });
}

// 预览专用接口
export function pictPreview(id) {
  return request({
    url: `/picture/${id}/preview`,
    method: "get",
  });
}

// 全景生成日志
export function getPicLogs(params) {
  return request({
    url: `/panoramaAutoCreate/panoramaAutoCreateLogs`,
    method: "get",
    params,
  });
}
